Change Password
User Password Change
The user must be currently logged in order to change their password. The user must first:
Input the current password
Input the new password
Confirm the new password
NOTE:
bearer token is required to perform this action.
The endpoint below to change the user’s account password.
PATCH /api/v1/auth/password
authorization : bearer token
REQUEST BODY SCHEMA : application/json
Here, you will provide the old password and the new password of user.
oldPassword required | string Current user's password |
newPassword required | string [ 5 .. 50 ] characters New user's password |
{- "oldPassword": "old-password",
- "newPassword": "new-password"
}